﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SaleSub.aspx.cs" Inherits="Sales_SaleSub" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .SubmitBut
        {
            width: 330px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
<div class="SubmitBody">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource2" CellPadding="3" CellSpacing="2" 
        Width="320px">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="序号" SortExpression="id" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center"/>
            <asp:BoundField DataField="name" HeaderText="彩种" SortExpression="name" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Center"/>
            <asp:TemplateField HeaderText="数量">
            <ItemTemplate><asp:TextBox ID="TextBox3" runat="server" Width="40px"></asp:TextBox >&nbsp<asp:Label ID="Label1" runat="server">张</asp:Label></ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:testLottery %>" 
        SelectCommand="SELECT [id], [name] FROM [Lottery]"></asp:SqlDataSource>
    <br />
    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="数据有误，请检查" 
        Visible="False"></asp:Label>
</div>
<div class="SubmitBut">
    &nbsp;&nbsp;&nbsp;&nbsp;
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    &nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Height="46px" Text="提交" Width="64px" 
        onclick="Button1_Click" />
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" Height="46px" Text="故障" Width="64px" 
        onclick="Button2_Click" />
    &nbsp;
    </div>
    </form>
</body>
</html>
